#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class SeriesAxisXmlBuilder : IXmlBuilder {

        private SeriesAxis mResultObject = null;

        public SeriesAxis ResultObject {
            get {
                return mResultObject;
            }
        }

        public SeriesAxisXmlBuilder(XmlNode seriesAxisXmlNode) {
            Check.Require(seriesAxisXmlNode != null, "Xml source node cannot be null");
            Check.Require(seriesAxisXmlNode.Name.CompareTo(XmlTagNames.seriesaxis.ToString()) == 0, "A SeriesAxis Xml node must be supplied.");
            this.BuildObject(seriesAxisXmlNode);
        }

        private void BuildObject(XmlNode seriesAxisXmlNode) {
            mResultObject = new SeriesAxis();
        }
    }
}
